import { createRequest } from '@/request'

// 分页查询
export const learningTaskPage = data => {
  return createRequest({
    url: `/teacher/learningTask/page`,
    method: 'get',
		params: data
  })
}

// 查看详情
export const learningTaskFindById = id => {
  return createRequest({
    url: `/teacher/learningTask/findById/${id}`,
    method: 'get',
  })
}

// 查看详情
export const studentLearningTaskFindById = id => {
  return createRequest({
    url: `/student/learningTask/findById/${id}`,
    method: 'get',
  })
}


// 确认评分
export const learningTaskScoring = id => {
  return createRequest({
    url: `/student/learningTask/scoring/${id}`,
    method: 'post',
  })
}

